package com.ruoyi.web.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 文件信息对象 sys_file_info
 *
 * @author liuyu
 * @date 2021-08-26
 */
public class SysFileInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 文件id
     */
    private Long fileId;

    /**
     * 文件原始名称
     */
    @Excel(name = "文件原始名称")
    private String originalFilename;

    /**
     * 文件名称
     */
    @Excel(name = "文件名称")
    private String fileName;

    /**
     * 文件大小
     */
    @Excel(name = "文件大小")
    private Integer fileSize;

    /**
     * 文件路径
     */
    @Excel(name = "文件路径")
    private String filePath;

    public Long getFileId() {
        return fileId;
    }

    public void setFileId(Long fileId) {
        this.fileId = fileId;
    }

    public String getOriginalFilename() {
        return originalFilename;
    }

    public void setOriginalFilename(String originalFilename) {
        this.originalFilename = originalFilename;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public Integer getFileSize() {
        return fileSize;
    }

    public void setFileSize(Integer fileSize) {
        this.fileSize = fileSize;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("fileId", getFileId())
                .append("originalFilename", getOriginalFilename())
                .append("fileName", getFileName())
                .append("fileSize", getFileSize())
                .append("filePath", getFilePath())
                .toString();
    }
}